<h1>New calendar_item</h1>

<%= error_messages_for :calendar_item %>

<% form_for(@calendar_item) do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>Start date</b><br />
    <%= f.datetime_select :start_date %>
  </p>

  <p>
    <b>End date</b><br />
    <%= f.datetime_select :end_date %>
  </p>

  <p>
    <b>Capacity</b><br />
    <%= f.text_field :capacity %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', calendar_items_path %>
